<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link href="<?php echo base_url()?>templates/images/icons/icon_manage.png" rel="shortcut icon" type="image/x-icon" />
        <link rel="stylesheet" type="text/css" href="<?php echo base_url()?>templates/css/style_login.css" />
        <script language="JavaScript" src="<?php echo base_url()?>templates/js/myjs.js" type="text/javascript"></script>
        <title>MANAGE STAFF AND SALARY</title>
    </head>
    <body>
        <div class="topbg" align="center">
            <div class="banner">
                
            </div>
            <div align="center">
                <div class="page" style="width:934px; text-align:left">
                    <div style="padding:0px 0px 0px 0px" align="left">
                        <br></br>
                        <form action="<?php echo base_url()?>login/checkLogin" name="formLogin" method="POST" onsubmit="return checkLogin();">                  

                            <table width="100%" cellspacing="1" align="center">
                                <tr>
                                    <td class="thead" align="center">
                                        <h1>LOGIN TO SYSTEM</h1>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center">
                                        <table class="tborder" width="400" style="margin-bottom:50px" cellspacing="0" cellpadding="5">
                                            <tr> 
                                                <td class="row1" style="padding-left:10px;" width="128">Email</td>
                                                <td class="row2" width="266"><input type="text" name="txtEmail" size="40" value="<?php if(isset($email)) echo $email;?>"/></td>
                                            </tr>
                                            <tr> 
                                                <td class="row2" colspan="2" align="center">
                                                    <?php if(isset($email_form)) echo "<strong>".$email_form."</strong>";?>
                                                </td> 
                                            </tr>
                                            <tr> 
                                                <td class="row1" style="padding-left:10px;">Password</td>
                                                <td class="row2"><input type="password" name="txtPass" size="40" value=""/></td> 
                                            </tr>
                                            
                                             <tr> 
                                                <td class="row2" colspan="2" align="center">
                                                    <?php if(isset($error_login)) echo "<strong>".$error_login."</strong>";?>
                                                </td> 
                                            </tr>
                                            <tr> 
                                                <td class="row1" align="center"><input type="submit" name="Submit" value="Sign in"/></td>
                                                <td class="row1" align="left"><input type="reset" name="Reset" value="Reset"/></td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </form>
                    </div>
                </div>
            </div>
            <div class="footer" style="padding-top:40px;padding-bottom: 10px;" align="center">
                <a href="#">Developed by Group Internship Student <br/> </a>                
            </div>
        </div>
    </body>
</html>

